package com.simon.mengkou.data.bean.req;

import com.ouertech.android.agm.lib.base.bean.BaseRequest;
import com.ouertech.android.agm.lib.base.utils.UtilList;
import com.simon.mengkou.data.bean.base.Product;

import java.util.List;

/**
 * Created by xiazhenshui on 16/8/1.
 */

public class BalanceReq extends BaseRequest {
    private static final long serialVersionUID = 1L;

    //ids
    private List<Product> ids;

    public List<Product> getIds() {
        return ids;
    }

    public void setIds(List<Product> ids) {
        this.ids = ids;
        if(UtilList.isNotEmpty(ids)) {
            for(int i=0; i<ids.size(); i++) {
                add("orderitemIds", ids.get(i).getOrderItemId());
            }
        }
    }
}
